package com.haoyeteng.sxbd.modular.business.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author haoyeteng123
 * @since 2019-06-20
 */
@TableName("bus_product")
public class Product extends Model<Product> {

    private static final long serialVersionUID = 1L;

    /**
     * 商品Id
     */
    @TableId(value = "product_id", type = IdType.AUTO)
    private Integer productId;
    /**
     * 商品名称
     */
    @TableField("product_name")
    private String productName;
    /**
     * 产品描述
     */
    @TableField("product_desc")
    private String productDesc;
    /**
     * 是否认证(0.否;1需认证)
     */
    @TableField("if_auth")
    private Integer ifAuth;
    /**
     * 单价(基站和坐标服务使用)
     */
    @TableField("unit_price")
    private Float unitPrice;
    /**
     * 月单价
     */
    @TableField("month_price")
    private Float monthPrice;
    /**
     * 年单价
     */
    @TableField("year_price")
    private Float yearPrice;
    /**
     * 服务类型(购买的账号类型)RTD;RTK
     */
    @TableField("service_type")
    private String serviceType;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 删除标记
     */
    @TableField("flag")
    @TableLogic
    private Integer flag;


    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductDesc() {
        return productDesc;
    }

    public void setProductDesc(String productDesc) {
        this.productDesc = productDesc;
    }

    public Integer getIfAuth() {
        return ifAuth;
    }

    public void setIfAuth(Integer ifAuth) {
        this.ifAuth = ifAuth;
    }

    public Float getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(Float unitPrice) {
        this.unitPrice = unitPrice;
    }

    public Float getMonthPrice() {
        return monthPrice;
    }

    public void setMonthPrice(Float monthPrice) {
        this.monthPrice = monthPrice;
    }

    public Float getYearPrice() {
        return yearPrice;
    }

    public void setYearPrice(Float yearPrice) {
        this.yearPrice = yearPrice;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getServiceType() {
        return serviceType;
    }

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }

    @Override
    protected Serializable pkVal() {
        return this.productId;
    }

    @Override
    public String toString() {
        return "Product{" +
                "productId=" + productId +
                ", productName='" + productName + '\'' +
                ", productDesc='" + productDesc + '\'' +
                ", ifAuth=" + ifAuth +
                ", unitPrice=" + unitPrice +
                ", monthPrice=" + monthPrice +
                ", yearPrice=" + yearPrice +
                ", serviceType='" + serviceType + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", flag=" + flag +
                '}';
    }
}
